package com.sf.dlb.jpa.repository;

import com.sf.dlb.jpa.model.UserCommissionInfo;
import com.sf.dlb.jpa.model.UserInvitationInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户抽成表 Repository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface UserCommissionRepository extends JpaRepository<UserCommissionInfo, Long> {
    /**
     * 根据用户查询邀请人记录
     * @param userId
     * @param delflag
     * @return
     */
    List<UserCommissionInfo> findByUserIdAndDelFlag(String userId, String delflag);
}